package org.example.responsibilitychain;

/**
 * @author wangbin
 * @date 2024/4/20
 * @vesion 1.0
 */
public class Client {
    public static void main(String[] args) {
        PurchaseRequest purchaseRequest = new PurchaseRequest(4, 3044030, 1);

        DepartmentApprover departmentApprover = new DepartmentApprover("中山市");
        CollegeApprover collegeApprover = new CollegeApprover("重视");
        SchoolApprover schoolApprover = new SchoolApprover("dd");

        departmentApprover.setApprover(collegeApprover);
        collegeApprover.setApprover(schoolApprover);
        schoolApprover.setApprover(departmentApprover);

        purchaseRequest.processRequest(departmentApprover);
    }
}
